package com.dw.etl.core.bean.model;

import java.io.Serializable;
import java.util.Date;

public class MdMedDim implements Serializable {
    private static final long serialVersionUID = 1L;

    private String idDim;

    private String cd;

    private String idPubfld;

    private String sdDimtp;

    private String naDimtp;

    private String tbDim;

    private String tbDimcomp;

    private String filter;

    private Boolean fgComp;

    private String des;

    private Date dtSysCre;

    private Date dtSysModi;

    public String getIdDim() {
        return idDim;
    }

    public void setIdDim(String idDim) {
        this.idDim = idDim;
    }

    public String getCd() {
        return cd;
    }

    public void setCd(String cd) {
        this.cd = cd;
    }

    public String getIdPubfld() {
        return idPubfld;
    }

    public void setIdPubfld(String idPubfld) {
        this.idPubfld = idPubfld;
    }

    public String getSdDimtp() {
        return sdDimtp;
    }

    public void setSdDimtp(String sdDimtp) {
        this.sdDimtp = sdDimtp;
    }

    public String getNaDimtp() {
        return naDimtp;
    }

    public void setNaDimtp(String naDimtp) {
        this.naDimtp = naDimtp;
    }

    public String getTbDim() {
        return tbDim;
    }

    public void setTbDim(String tbDim) {
        this.tbDim = tbDim;
    }

    public String getTbDimcomp() {
        return tbDimcomp;
    }

    public void setTbDimcomp(String tbDimcomp) {
        this.tbDimcomp = tbDimcomp;
    }

    public String getFilter() {
        return filter;
    }

    public void setFilter(String filter) {
        this.filter = filter;
    }

    public Boolean getFgComp() {
        return fgComp;
    }

    public void setFgComp(Boolean fgComp) {
        this.fgComp = fgComp;
    }

    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des;
    }

    public Date getDtSysCre() {
        return dtSysCre;
    }

    public void setDtSysCre(Date dtSysCre) {
        this.dtSysCre = dtSysCre;
    }

    public Date getDtSysModi() {
        return dtSysModi;
    }

    public void setDtSysModi(Date dtSysModi) {
        this.dtSysModi = dtSysModi;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        MdMedDim other = (MdMedDim) that;
        return (this.getIdDim() == null ? other.getIdDim() == null : this.getIdDim().equals(other.getIdDim()))
            && (this.getCd() == null ? other.getCd() == null : this.getCd().equals(other.getCd()))
            && (this.getIdPubfld() == null ? other.getIdPubfld() == null : this.getIdPubfld().equals(other.getIdPubfld()))
            && (this.getSdDimtp() == null ? other.getSdDimtp() == null : this.getSdDimtp().equals(other.getSdDimtp()))
            && (this.getNaDimtp() == null ? other.getNaDimtp() == null : this.getNaDimtp().equals(other.getNaDimtp()))
            && (this.getTbDim() == null ? other.getTbDim() == null : this.getTbDim().equals(other.getTbDim()))
            && (this.getTbDimcomp() == null ? other.getTbDimcomp() == null : this.getTbDimcomp().equals(other.getTbDimcomp()))
            && (this.getFilter() == null ? other.getFilter() == null : this.getFilter().equals(other.getFilter()))
            && (this.getFgComp() == null ? other.getFgComp() == null : this.getFgComp().equals(other.getFgComp()))
            && (this.getDes() == null ? other.getDes() == null : this.getDes().equals(other.getDes()))
            && (this.getDtSysCre() == null ? other.getDtSysCre() == null : this.getDtSysCre().equals(other.getDtSysCre()))
            && (this.getDtSysModi() == null ? other.getDtSysModi() == null : this.getDtSysModi().equals(other.getDtSysModi()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getIdDim() == null) ? 0 : getIdDim().hashCode());
        result = prime * result + ((getCd() == null) ? 0 : getCd().hashCode());
        result = prime * result + ((getIdPubfld() == null) ? 0 : getIdPubfld().hashCode());
        result = prime * result + ((getSdDimtp() == null) ? 0 : getSdDimtp().hashCode());
        result = prime * result + ((getNaDimtp() == null) ? 0 : getNaDimtp().hashCode());
        result = prime * result + ((getTbDim() == null) ? 0 : getTbDim().hashCode());
        result = prime * result + ((getTbDimcomp() == null) ? 0 : getTbDimcomp().hashCode());
        result = prime * result + ((getFilter() == null) ? 0 : getFilter().hashCode());
        result = prime * result + ((getFgComp() == null) ? 0 : getFgComp().hashCode());
        result = prime * result + ((getDes() == null) ? 0 : getDes().hashCode());
        result = prime * result + ((getDtSysCre() == null) ? 0 : getDtSysCre().hashCode());
        result = prime * result + ((getDtSysModi() == null) ? 0 : getDtSysModi().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append(", idDim=").append(idDim);
        sb.append(", cd=").append(cd);
        sb.append(", idPubfld=").append(idPubfld);
        sb.append(", sdDimtp=").append(sdDimtp);
        sb.append(", naDimtp=").append(naDimtp);
        sb.append(", tbDim=").append(tbDim);
        sb.append(", tbDimcomp=").append(tbDimcomp);
        sb.append(", filter=").append(filter);
        sb.append(", fgComp=").append(fgComp);
        sb.append(", des=").append(des);
        sb.append(", dtSysCre=").append(dtSysCre);
        sb.append(", dtSysModi=").append(dtSysModi);
        sb.append("]");
        return sb.toString();
    }
}